﻿<!DOCTYPE HTML>
<html>
{include file="public:header_css"}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
	<span class="c-gray en">&gt;</span>
	学生管理
	<span class="c-gray en">&gt;</span>
	课程列表
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
	<div class="cl pd-5 bg-1 bk-gray mt-20">
            <span class="l">
				 <a class="btn btn-primary radius" style="width: 85px;height: 30px;font-size: 12px;" href="{:url('add',array('stu_id'=>$stu_id))}">
                    <i class="Hui-iconfont">&#xe600;</i> 新增课程
                </a>
            </span>
			<span class="l">
				<button class="btn btn-primary radius" onclick="del('删除课程','{:url('del',array('stu_id'=>$stu_id))}')" style="margin-left: 20px;width: 85px;height: 30px;font-size: 12px;">&nbsp;&nbsp;删除课程&nbsp;&nbsp;</button>
			</span>
	</div>
	<div action="" method="post" class="form form-horizontal" id="form-shops-add" enctype="multipart/form-data">
		<div class="mt-20">
			<table class="table table-border table-bordered table-bg table-sort">
				<thead>
				<tr class="text-c">
					<th width="200">课程名称</th>
					<th width="200">具体班级</th>
					<th width="250">上课时间</th>
					<th width="250">课程类型</th>
					<th width="250">课任教师</th>
				</tr>
				</thead>
				<tbody id="stuList">
				{foreach name="collective_list" item="val" key="key"}
				<input type="hidden" id="stu_id" value="{$stu_id}">
				<tr class="text-c">
					<td>{$val['course_name']}</td>
					<td>{$val['class_name']}</td>
					<td>{$val['week_day']}{$val['time']}</td>
					<td>
						{if $val['course_type'] == 1 }集体{/if}
					</td>
					<td>{$val['teacher_name']}</td>
				</tr>
				{/foreach}

				{foreach name="many_list" item="val" key="key"}
				<tr class="text-c">
					<td>{$val['course_name']}</td>
					<td>{$val['class_name']}</td>
					<td>{$val['week_day']}{$val['time']}</td>
					<td>
						{if $val['course_type'] == 2 }一对多{/if}
					</td>
					<td>{$val['teacher_name']}</td>
				</tr>
				{/foreach}

				{foreach name="one_list" item="val" key="key"}
				<tr class="text-c">
					<td>{$val['course_name']}</td>
					<td>{$val['class_name']}</td>
					<td>{$val['week_day']}{$val['time']}</td>
					<td>
						{if $val['course_type'] == 3 }一对一{/if}
					</td>
					<td>{$val['teacher_name']}</td>
				</tr>
				{/foreach}
				</tbody>
			</table>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-5 col-sm-offset-5" style="margin-top: 100px;">
				<a class="btn btn-warning radius" href="{:url('student/index')}">&nbsp;&nbsp;返回&nbsp;&nbsp;</a>
			</div>
		</div>
	</div>
</div>

{include file="public:footer_js"}

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__STATIC__/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__STATIC__/admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="__STATIC__/admin/lib/laypage/1.2/laypage.js"></script>

<script type="text/javascript">
    function del(title,url,id,w,h){
        layer_show(title,url,900,700);
    }
</script>
</body>

</html>